import logo from "./logo.svg";
import {
  HashRouter as Router,
  Route,
  Switch,
  Redirect,
} from "react-router-dom";
import Login from "./views/Login";
import Main from "./views/Main";

function App() {
  return (
    <Router>
      <Switch>
        <Route path="/" exact>
          <Login />
        </Route>
        <Route path="/main">
          <Main />
        </Route>
        <Redirect to="/main/products" />
      </Switch>
    </Router>
  );
}

export default App;
